
<template>
  <div>
    御剑乘风来,除魔天地间!===vue3==={{ num }}
    <button @click="handle">按钮</button>
  </div>
</template>
<script>
export default {
  name: '',
  setup () {
    /* 
    setup的特征
    1-没有this
    2-有返回值
    3-比beforeCreate生命周期还要早
    */
    const num = 10
    // console.log(this, 999);
    const handle = () => {
      console.log('handle');
    }
    return { num, handle }
  }
}
</script>
<style lang='less'  scoped>
</style>